include_directories(${CMAKE_SOURCE_DIR}/c++_network_lib)

set(TESTS peer_server)
foreach(test ${TESTS})
  add_executable(${test} ${test}.cpp)

  target_link_libraries(${test} NetLib)
endforeach(test)

FIND_PACKAGE(Threads)

TARGET_LINK_LIBRARIES(peer_server ${CMAKE_THREAD_LIBS_INIT})

